
from Cube.utility.RandomSeed import RandomSeedGet

class QMapHeader:
    def __init__(self, mapInfo, memberList, checksum):
        self.MapInfo = mapInfo
        self.MemberList = memberList
        self.Checksum = checksum
        self.RandomSeed = None

    def MapInfoGet(self):
        ret = self.MapInfo
        return ret

    def MemberListGet(self):
        ret = self.MemberList
        return ret

    def ChecksumGet(self):
        ret = self.Checksum
        return ret

    def RandomSeedGet(self):
        if self.RandomSeed is None:
            self.RandomSeed = RandomSeedGet()
        return self.RandomSeed

    def RandomSeedSet(self, seed):
        self.RandomSeed = seed

    # override it
    def MapBodyKlassGet(self):
        ret = None
        return ret

    # override it
    def ServerMemberIDGet(self):
        ret = None
        return ret
